<extend name="Base/common"/>
<block name="body">
    <div class="insurance">
        <div class="width1000">
            <div class="step_info">
                <div class="write_info on">录入保单信息</div>
                <div class="get_price">获取精确报价</div>
                <div class="cash_money">支付保单</div>
                <div style="clear:both"></div>
            </div>
            <div class="ins_tab">
                <a href="javascript:void(0);" class="f_l ins_tab_li">定制我的车险</a>
            </div>
            <form action="{:U('step4')}" method="post" class="form_all" id="forms">
                <input type="hidden" name="c_order_no" value="{$c_order_no}">
                <input type="hidden" name="t_insrnc_bgn_tm" value="{$t_insrnc_bgn_tm}">
            <volist name="kindlist" id="kind">
                <div class="clearfix ins_select_list">
                	<div class="span1 f_l t_c">
                        <label for="ck_dzwd{$i}" class="ins_checkbox">
                        </label>
                        <input type="checkbox" class="hide" id="ck_dzwd{$i}" name="ck_dzwd{$i}" value="{$i}" />
                    </div>
                    <div class="span3 f_l relative">
                        <span>{$kind.C_KIND_NAME}</span>
                        <span class="ins_help" title="详情"></span>
                        <div class="ins_detail" style="display: none;">
                            <p class="ins_detail_tit">{$kind.C_KIND_NAME}</p>
                            <p>{$kind.C_DESC}</p>
                        </div>
                    </div>
                    <div class="span1 select_label ins_datail_label" style="float:left;">
                    	<label for="NotDeductible{$i}" >不计免赔</label>
                    	<input type="checkbox" class="hide" onclick="onCheckbox(this)"  id="NotDeductible{$i}" name="ed_dzwd{$i}"  value="{$i}"/>
                    </div>
                    <div class="span4 f_l select_label ins_detail_label">
                        <eq name="kind['C_AMT_FLAG']" value="02">
                        赔付额度：
                        <volist name="kind['opts']" id="vo" key="k">
                            <label for="k_{$kind.N_SEQ_NO}_{$k}" <eq name="vo['value']" value="$kind['N_DEFAULT_AMT']">class="on"</eq>>{$vo.label}</label>
                            <input type="radio" class="hide" id="k_{$kind.N_SEQ_NO}_{$k}" name="n_amt[{$kind.C_KIND_CDE}]" value="{$vo.value}" <eq name="vo['value']" value="$kind['N_DEFAULT_AMT']">checked="checked"</eq> />
                        </volist>
                        <else />
                            <input type="hidden" name="n_amt[{$kind.C_KIND_CDE}]" value="{$kind['N_DEFAULT_AMT']}">
                        </eq>
                        <input type="hidden" name="n_seat_num[{$kind.C_KIND_CDE}]" value="{$kind.N_SEAT_NUM}" />
                    </div>
                </div>
            </volist>
                <input type="submit" value="下一步" class="form_submit" />
            </form>
        </div>
    </div>
    </block>
<block name="script">
<script type="text/javascript" src="__PUBLIC__/Green/js/insurance.js"></script>
<script>
function onCheckbox(obj){
    var id="#"+obj.id
    if($(id).attr("checked")=='checked'){
  	  $(id).prev().removeClass('on');
  	  $(id).removeAttr("checked"); 	  
    }else{
  	  $(id).prev().addClass('on');
  	  $(id).attr("checked",'true'); 
    }
  }

</script>
</block>
